package com.nudge.portlet;

import com.nudge.portlet.api.GranularityType;

/**
 * Created by IntelliJ IDEA.
 * User: Fred
 * Date: 15/07/11
 * Time: 16:41
 * To change this template use File | Settings | File Templates.
 */
public class PeriodAttributes {

    /**
     * Timestamp of the beginning of the current interval.
     */
    private long currentStartTimestamp;

    /**
     * Timestamp of the end of the current interval.
     */
    private long currentEndTimestamp;

    private long previousStartTimestamp;

    private long previousEndTimestamp;

    GranularityType granularityType;

    public long getCurrentStartTimestamp() {
        return currentStartTimestamp;
    }

    public void setCurrentStartTimestamp(long currentStartTimestamp) {
        this.currentStartTimestamp = currentStartTimestamp;
    }

    public long getCurrentEndTimestamp() {
        return currentEndTimestamp;
    }

    public void setCurrentEndTimestamp(long currentEndTimestamp) {
        this.currentEndTimestamp = currentEndTimestamp;
    }

    public long getPreviousStartTimestamp() {
        return previousStartTimestamp;
    }

    public void setPreviousStartTimestamp(long previousStartTimestamp) {
        this.previousStartTimestamp = previousStartTimestamp;
    }

    public long getPreviousEndTimestamp() {
        return previousEndTimestamp;
    }

    public void setPreviousEndTimestamp(long previousEndTimestamp) {
        this.previousEndTimestamp = previousEndTimestamp;
    }

    public GranularityType getGranularityType() {
        return granularityType;
    }

    public void setGranularityType(GranularityType granularityType) {
        this.granularityType = granularityType;
    }
}
